﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Tasks.Common.Entitys;
namespace Tasks.UI.Models.Power
{
    /// <summary>
    /// 分配角色的模块管理权限
    /// </summary>
    public class AssignRolePowerModel:BaseManageModel
    {
        /// <summary>
        /// 呆分配权限的ID
        /// </summary>
        public int RoleID { get; set; }

        public string ModuleName { get; set; }
        public string ActionName { get; set; }
        public string RoleName { get; set; }
        
        public int  ModuleID { get; set; }
        public int ActionIDs { get; set; }
        public int[] ActionID { get; set; }
        public string srtActions { get; set; }
        public IList<PowerAction> ActionList { get; set; }
        public IList<PowerModule> ModuleList { get; set; }

        /// <summary>
        /// 应用程序列表
        /// </summary>
        public IList<App> Apps { get; set; }
        /// <summary>
        /// 当前角色已设置的应用程序
        /// </summary>
        public IList<App> RoleApps { get; set; }

        /// <summary>
        /// 获取选中复选框的value
        /// </summary>
        public int[] AppID { get; set; }
        /// <summary>
        /// 获取选中复选框的value
        /// </summary>
        public string[] ckbItems { get; set; }
        /// <summary>
        /// 是否选中复选框
        /// </summary>
        public bool[] chkItemsChecked { get; set; }
    }
}